package com.gxuwz.attend.entity;

import org.springframework.stereotype.Component;

@Component
public class Page {
    private String id;
    private String name;
    private int size;
    private int offset;


    public Page() {
    }

    public Page(String id, String name, int size, int offset) {
        this.id = id;
        this.name = name;
        this.size = size;
        this.offset = offset;
    }

    /**
     * 获取
     * @return id
     */
    public String getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return size
     */
    public int getSize() {
        return size;
    }

    /**
     * 设置
     * @param size
     */
    public void setSize(int size) {
        this.size = size;
    }

    /**
     * 获取
     * @return offset
     */
    public int getOffset() {
        return offset;
    }

    /**
     * 设置
     * @param offset
     */
    public void setOffset(int offset) {
        this.offset = offset;
    }

    public String toString() {
        return "Page{id = " + id + ", name = " + name + ", size = " + size + ", offset = " + offset + "}";
    }
}
